﻿#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include <QSql>
#include <QSqlDatabase>
#include "ZKFingerReader/FPCacheDBLoader.h"
namespace Ui {
class Dialog;
}

class Dialog : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog(QWidget *parent = 0);
    ~Dialog();
private slots:
    void showEnrollDialog();
    void showVerifyDialog();
    void showIdentifyDialog();
    void deleteUser();
private:
    Ui::Dialog *ui;
    ZKFP::FPCacheDBLoader m_dbLoader;
    QByteArray m_regTemplate;

    void initDB();
};

#endif // DIALOG_H
